/* 产品表格样式 */
.product-data-list-box {
  max-width: var(--view-width);
  margin: 0 auto;
}
.s_pro_p1 {
  font-size: var(--product-title-font-size);
  font-weight: bold;
  color: #2d3436;
  text-align: center;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--first-color);
  letter-spacing: 1px;
}
td {
  white-space: nowrap;
}

.s_pro_p2 {
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 0 0 30px;
  border: none;
}

.product-table {
  max-width: var(--view-width);
  /* 增加表格最大宽度 */
  width: 100%;
  /* 使表格宽度自适应容器 */
  border-collapse: collapse;
  margin: 30px auto;
  /* 增加上下外边距 */
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  /* 增强阴影效果 */
  border-radius: 12px;
  /* 增加圆角 */
  overflow: hidden;
  animation: tableFadeIn 0.8s ease-in-out;
}

@keyframes tableFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-content {
  max-width: var(--view-width);
  margin: 0 auto 30px;
  box-sizing: border-box;
  padding: 25px;
  background-color: var(--page-common-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.top-content h3 {
  color: #2d3436;
  font-size: var(--product-subtitle-font-size);
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.top-content p {
  color: #333;
  font-size: var(--main-font-size);
  margin: 0;
}

/* 对角线表头样式 */
.diagonal-header {
  position: relative;
  height: 80px;
  vertical-align: middle;
}

.diagonal-header .header-content {
  position: relative;
  height: 100%;
  width: 100%;
}

.diagonal-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    #ccc calc(50% - 1px),
    #ccc calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.diagonal-header .top-text {
  position: absolute;
  top: 28px;
  right: 5px;
}

.diagonal-header .bottom-text {
  position: absolute;
  bottom: 13px;
  left: 2px;
}

.product-table th,
.product-table td {
  padding: 15px 20px;
  /* 增加单元格内边距 */
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  /* 使用更浅的边框色 */
  transition: all 0.3s ease;
  /* 略微增大字体 */
}

.product-table th {
  background-color: #f1f5f9;
  /* 使用更专业的表头背景色 */
  font-weight: 700;
  /* 加粗表头字体 */
  color: #2d3436;
  /* 调整表头文字颜色 */
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  /* 表头文字大写 */
  letter-spacing: 0.5px;
  /* 增加字母间距 */
}

.product-table th:hover {
  background-color: #f1f3f5;
}

.product-table tr {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-table tr:not(:first-child):hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.product-table tbody tr:hover {
  background-color: #f9f9f9;
}

.product-table a {
  color: var(--first-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.product-table a:hover {
  color: var(--second-color);
  text-decoration: underline;
}

/* 对角线表头样式 */
.diagonal-header {
  position: relative;
  height: 80px;
  vertical-align: middle;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .product-table {
    font-size: 14px;
  }

  .product-table th,
  .product-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .product-table {
    display: block;
    overflow-x: auto;
  }
}
